/**
 * 作者: clz
 * 日期: 2025-05-14 16:23:57
 * 备注: 联盟宝箱奖励表
 */
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionBoxRewardModel {
    protected int id; // 奖励id
    protected int unionLevel; // 联盟等级
    protected int progress; // 进度值
    protected String reward; // 大礼奖励

    public UnionBoxRewardModel() {
    }

    public UnionBoxRewardModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        unionLevel = obj.containsKey("union_level") ? obj.getInteger("union_level") : 0;
        progress = obj.containsKey("progress") ? obj.getInteger("progress") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getUnionLevel() {
        return unionLevel;
    }

    public int getProgress() {
        return progress;
    }

    public String getReward() {
        return reward;
    }

}
